<%--
  Created by IntelliJ IDEA.
  User: 13536
  Date: 2021/12/19
  Time: 20:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="static/bootstrap4/css/bootstrap.css">
    <script src="static/js/jquery-3.2.1.js"></script>
    <script src="static/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="static/bootstrap4/js/bootstrap.js"></script>
    <title>Title</title>
</head>
<body>
hhhhhhhhhhhhhhhhhhhhhhhhh
<div class="container">
    <div class="row">
        <div class="col-3">
            <div id="tree">

            </div>
        </div>
        <div class="col-9">
           <div id="nr"></div>
        </div>
    </div>
</div>
<script>
    $(function () {
     $.post("tree",function (obj) {
        $("#tree").treeview({
            levels: 100,
            data:obj,
            onNodeSelected: function (a,b) {
             $("#nr").load(b.href);
            }
        })
     })
    })
</script>
</body>
</html>